package com.suse.service.admin.cms.model.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 广告推荐添加参数
 * </p>
 *
 * @author 辜玉彬
 * @since 2022-08-17 21:42
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="AdSaveParam", description="广告推荐添加参数")
public class AdSaveParam {

    @ApiModelProperty(value = "标题",required = true)
    @NotEmpty(message = "标题不能为空")
    private String title;

    @ApiModelProperty(value = "类型ID",required = true)
    @NotEmpty(message = "类型ID不能为空")
    private String typeId;

    @ApiModelProperty(value = "图片地址",required = true)
    @NotEmpty(message = "图片地址不能为空")
    private String imageUrl;

    @ApiModelProperty(value = "链接地址",required = true)
    @NotEmpty(message = "链接地址不能为空")
    private String linkUrl;

    @ApiModelProperty(value = "排序",required = true)
    @NotNull(message = "排序不能为空")
    private Integer sort;

}
